<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>教师选课情况</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/index.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/role.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/table.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/SelectCourseSystem.js"></script>
</head>
<body>
<div class="contain">
    <%@ include file="loginHead.jsp" %>
    <%@ include file="teacherNavigate.jsp" %>

    <div class="showList">
        <p>目前的选课情况如下：</p>
        <table class="table" border="1" cellPadding="10" cellSpacing="0">
            <tr>
                <th>课程编号</th>
                <th>课程名称</th>
                <th>授课老师</th>
                <th>学分</th>
                <th>上课时间</th>
                <th>上课地点</th>
                <th>限制人数</th>
                <th>已选人数</th>
            </tr>

            <c:forEach items="${teacherCourseList}" var="teacherCourse">
                <tr>
                    <td>${teacherCourse.courseID}</td>
                    <td>${teacherCourse.courseName}</td>
                    <td>${teacherCourse.teacher}</td>
                    <td>${teacherCourse.point}</td>
                    <td>${teacherCourse.time_1} ${teacherCourse.time_2}</td>
                    <td>${teacherCourse.location}</td>
                    <td>${teacherCourse.limited}</td>
                    <td>${teacherCourse.population}</td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>
</body>
</html>